home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2521 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: pravda.aa.msen.com!not-for-mail
  2. From: crandall@mail.msen.com (Chad Randall)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ClipRegions with MUI?
  5. Date: 1 Feb 1996 13:29:47 GMT
  6. Organization: Msen, Inc. -- Ann Arbor, MI.
  7. Message-ID: <4eqf8b$m13@pravda.aa.msen.com>
  8. References: <4enqca$26re@columba.udac.uu.se>
  9. NNTP-Posting-Host: conch.aa.msen.com
  10. X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
  11.  
  12. Kristofer Maad (m93kma@sabik.tdb.uu.se) wrote:
  13. : Hi all...
  14. : I'm writing a B-Spline editor class for MUI, and I am trying to make
  15. : the rendering clip against the object borders. In the mDraw() routine,
  16. : I make a new region with NewRegion() and add a rectangle to it with
  17. : OrRectRegion(), and then I do a InstallClipRegion(), but then the
  18. : computer hangs everytime - what's wrong!!? Am I not allowed to install
  19. : clip regions at any time?
  20. : I know there's an example of clipping in the RKRMs, and I have looked
  21. : at the C source, but I can't see what's wrong with my code.
  22. : By the way, I use AmigaE v3.2 registered (and yes, I think I know how
  23. : to program in E).
  24. : If anybody has something on this, please...! Everything else (well
  25. : nearly, anyway) works perfectly now.
  26.  
  27. You writing an object that is called between BeginRefresh/EndRefresh?
  28. (gadgets, images attached to gadgets, etc)
  29.  
  30. Page 721 of the RKM:Libs explains why not to do this!
  31.  
  32.  
  33. Unfortunatly, I'm not sure how to implement the solution when inside
  34. a gadget/image class...  You need a way to check if the window you
  35. are rendering in is inside a BeginRefresh/EndRefresh pair...
  36. good luck!
  37.  
  38. -A fellow E programmer,
  39.  crandall@msen.com
  40.